#include "resultdialog.h"
#include "ui_resultdialog.h"

#include "mainshare.h"

#include <QDesktopServices>
#include <QUrl>

ResultDialog::ResultDialog(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::ResultDialog)
{
    ui->setupUi(this);
}

ResultDialog::~ResultDialog()
{
    delete ui;
}

void ResultDialog::setSVMScore(const double &svmScore)
{
    ui->svmScoreWidget->setSVMScore(svmScore);
}

void ResultDialog::on_featureButton_clicked()
{
    QDesktopServices::openUrl(QUrl::fromLocalFile(MAIN_FEATURE_FILE));
}
